/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-27     SummerGift   add spi flash port file
 */

#include <rtthread.h>
#include "drv_spi.h"

#if defined(BSP_USING_SPI_ATT7022EU)

int rt_hw_spi_att7022eu_first_init(void)
{
    __HAL_RCC_GPIOB_CLK_ENABLE();
	
    rt_hw_spi_device_attach(SPI_ATT7022EU_BUS_NAME,SPI_ATT7022EU_DEV_NAME, GPIOB, GPIO_PIN_13);
		
    return RT_EOK;
}
INIT_COMPONENT_EXPORT(rt_hw_spi_att7022eu_first_init);


#endif

